package com.zoe.vhr.mapper;

import com.zoe.vhr.model.MailSendLog;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author zoe.Zhang
 * @date 2023/01/04
 * @description $description
 */
public interface MailSendLogMapper {
    int insert(MailSendLog record);

    int insertSelective(MailSendLog record);

    int updateSendLog(@Param("msgId") String msgId, @Param("status") Integer status);

    List<MailSendLog> getMailLogByStatus();

    int updateSendLogAndTryTime(@Param("msgId") String msgId,
                                @Param("retryTime") Date retryTime);
}